#ifndef CREATEGROUP_H
#define CREATEGROUP_H

#include <QWidget>

namespace Ui {
class CreateGroup;
}

class CreateGroup : public QWidget
{
    Q_OBJECT
public:
    explicit CreateGroup(QString user, QWidget *parent = nullptr);
    ~CreateGroup();
protected:
    virtual void closeEvent(QCloseEvent *event) override;
public slots:
    void onAllUsers(QStringList);
private slots:
    void on_ptn_create_clicked();

private:
    Ui::CreateGroup *ui;
    QString userName;

signals:
    void group(QStringList users, QString groupName);
};

#endif // CREATEGROUP_H
